<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head >
    <meta charset="UTF-8">
    <title>用户信息</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
    <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}">

</head>
<body>
<div th:insert="~{public/publicTop::top}"></div></body>
<div style="width: 70%;margin: auto;text-align: center">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>修改信息</legend>
    </fieldset>
        <div class="layui-bg-gray" style="padding: 30px;">
            <form class="form-horizontal" th:action="@{/user/rename}" method="post">
                <div class="form-group">
                    <label  class="col-sm-2 control-label">昵称</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="name" placeholder="名字" th:value="${session.loginUser.getName()}">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label" >性别</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="sex" placeholder="" th:value="${session.loginUser.getSex()}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-8">
                        <button type="submit" class="btn btn-default btn btn-success">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</html>